<div class="pure-g">
    <div class="pure-u-1-5">
        <div ng-repeat="row in panels.left"
             class="pure-g">
            <div ng-repeat="panelId in (isArray(row)?row:[row])"
                 ng-class="'pure-u-1-'+(isArray(row)?row.length:1)">
                <div directive="panelId" class="panel"></div>
            </div>
        </div>
    </div>
    <div class="pure-u-4-5">
        <div ng-repeat="row in panels.main" class="pure-g">
            <div ng-repeat="panelId in (isArray(row)?row:[row])"
                 ng-class="'pure-u-1-'+(isArray(row)?row.length:1)">
                <div directive="panelId" class="panel"></div>
            </div>
        </div>
    </div>
</div>